home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
usr
/
bin
/
man2dvi
< prev
next >
Wrap
Text File
|
2005-10-13
|
409b
|
31 lines
#! /bin/sh
#
# script to format manpages to dvi
# Copyright (c) 1997 Tobias Begalke (tb@lst.de)
#
groff="groff -Tdvi -mandoc"
if [ ! $# = 1 ]; then
echo "$0: usage:"
echo " $0 [topic] > topic.dvi"
exit 1
fi
location=`man -c -w $1`
if [ "$location" = "" ]; then
exit 1
fi
case `file $location` in
*gzip* )
zcat $location | $groff
;;
*troff* )
$groff $location
;;
esac